RectControl.MouseWheel Event

The mouse wheel has been moved. The parameters X and Y are the mouse coordinates relative to the control that has received the event.

Syntax

result = MouseWheel( X, Y, DeltaX, DeltaY )


Parameters

X

Integer

Y

Integer

DeltaX

Integer

DeltaY

Integer

Return Value

Result

Boolean


Notes

The parameters DeltaX and DeltaY hold the number of scroll lines the wheel has been moved horizontally and vertically, as defined by the operating system. DeltaX is positive when the user scrolls right and negative when scrolling to the left. DeltaY is positive when the user scrolls down and negative when scrolling up. Returns a Boolean. Return True to prevent the event from propagating further.